<%-- 
    Document   : viewAJobDetail
    Created on : Jun 30, 2012, 4:06:47 PM
    Author     : Kyros
--%>

<%@page import="xml.entity.Job"%>
<%@page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" language="java"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Job Detail</title>
        <link href="css/Main.css" rel="stylesheet" type="text/css" />        
    </head>

    <body>	

        <table width="1000" border="0" align="center">
            <tr>
                <td colspan="3" align="right">
                    Welcome, ${sessionScope.USERNAME},         
                    <c:url var="Logout" value="Controller">
                        <c:param name="action" value="Logout"/>
                    </c:url>
                    <a href="${Logout}" class="Sign">Logout</a><br/><br/>
                </td>
            </tr>

            <tr>
                <td><img src="images/logo-job-portal.png" alt="" width="269" height="56" /></td>
                <td colspan="2">
                    <table border="0" id="wrap">
                        <tr id="menu">
                            <td width="100"></td>
                            <td class="shadow"><a href="home.jsp">HomePage</a></td>
                            <td width="10"></td>
                            <td class="shadow"><a href="aboutUs.jsp">About Us</a></td>
                            <td width="10"></td>
                            <td class="shadow"><a href="help.jsp">Help</a></td>
                            <td width="10"></td>
                            <!--<td class="shadow"><a href="register.jsp">Register</a></td>
                            <td width="10"></td> -->
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="3" align="center"><img src="images/bigpicture.jpg" width="1049" height="303" /></td>
            </tr>

            <tr><td colspan="3"><table width="600" border="0" align="center"><tr><td></td><td></td><td></td></tr></table></td></tr>
            <!--<tr>
                  <td colspan="3" align="center">
                  <table width="600" border="0" align="center">
                          <tr>
                          <td id="search" width="78"><label>Search</label></td>
                          <td width="272"><input type="search" name="txtSearch" size="30" placeholder="Input your search here" /></td>
                          <td width="236"><input name="btnSearch" type="button" value="  Search  " /></td>
                      </tr>
                  </table>
              </td>
            </tr>	-->
            <tr>
                <td><img src="images/left.png" width="208" height="975" /></td>
                <td width="800" rowspan="3" class="middle">

                    <h1><center>Your chosen job information</center></h1>
                    <form action="Controller" method="post">
                        <c:set var="job" value="${sessionScope.AJOB}"/>
                        <center>
                            <table border="0" >
                                <c:set var="count" value="0"/>
                                <input type="hidden" name="employerId" value="${job.employerId}"/>
                                <input type="hidden" name="employeeId" value="${job.employeeId}"/>
                                <tr>
                                    <c:url var="JSviewEmp" value="Controller">
                                        <c:param name="action" value="JSviewEmp"/>
                                        <c:param name="employerId" value="${job.employerId}"/>
                                    </c:url>
                                <a href="${JSviewEmp}">View Employer Information</a><br/>
                                </tr>
                                <tr>
                                    <td>Job Id</td>
                                    <td><input type="text" name="jobId" value="${job.jobId}" readonly="readonly"/></td>
                                </tr>
                                <tr>
                                    <td>Job Name</td>
                                    <td><input type="text" required="true" name="jobName" value="${job.jobName}" readonly="readonly"/></td>
                                </tr>
                                <tr>
                                    <td>Job Description</td>
                                    <td><TEXTAREA name="jobDesc" required="true" rows=3 cols=30 readonly="readonly">${job.jobDesc}</TEXTAREA></td>
                                </tr>
                                <tr>
                                    <td>Career</td>
                                    <td><input type="text" required="true" name="career" value="${job.career}" readonly="readonly"/></td>
                                </tr>
                                <tr>
                                    <td>Job Type</td>
                                    <%
                                                Job job = (Job) session.getAttribute("AJOB");
                                                String jobTypeDisplay = "";
                                                if (job.getJobType() == 1) {
                                                    jobTypeDisplay = "Part Time";
                                                } else {
                                                    jobTypeDisplay = "Full Time";
                                                }
                                    %>
                                    <td><select size="1" name="jobType">
                                            <option value ="${job.jobType}" hidden="true" disabled="disabled"><%=jobTypeDisplay%></option>
                                            <option value ="0">Full time</option>
                                            <option value ="1">Part time</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td>Needed Position</td>
                                    <td><input type="text" required="true" name="neededPos" value="${job.neededPos}" readonly="readonly"/></td>
                                </tr>
                                <tr>
                                    <td colspan="2" style="border-bottom:3px solid #F00" align="center"></td>
                                </tr>
                                <tr>
                                    <td>Job Limit</td>
                                    <td><input type="number" required="true" name="jobLimit" value="${job.jobLimit}" readonly="readonly"/></td>
                                </tr>
                                <tr>
                                    <td>Salary Offer</td>
                                    <td><input type="text" required="true" name="salaryOffer" value="${job.salaryOffer}" readonly="readonly"/></td>
                                </tr>
                                <tr>
                                    <td>Job Benefit</td>
                                    <td><TEXTAREA name="jobBenefit" rows=3 cols=30 readonly="readonly">${job.jobBenefit}</TEXTAREA></td>
                                </tr>
                                <tr>
                                    <td>Required Experience</td>
                                    <td><TEXTAREA name="requiredExp" rows=3 cols=30 readonly="readonly">${job.requiredExp}</TEXTAREA></td>
                                </tr>
                                <tr>
                                    <td>Required Education</td>
                                    <td><TEXTAREA name="requiredEdu" rows=3 cols=30 readonly="readonly">${job.requiredEdu}</TEXTAREA></td>
                                </tr>
                                <tr>
                                    <td>Other Requirement</td>
                                    <td><TEXTAREA name="otherRequire" rows=3 cols=30 readonly="readonly">${job.otherRequire}</TEXTAREA></td>
                                </tr>
                                <tr>
                                    <td colspan="2" style="border-bottom:3px solid #F00" align="center"></td>
                                </tr>
                                <tr>
                                    <td>City</td>
                                    <td><select size="1" name="city" disabled="disabled">
                                            <option value="${job.city}" hidden="true" >${job.city}</option>                    
                                            <option value="Ha Noi">Ha Noi</option>
                                            <option value ="Ho Chi Minh">Ho Chi Minh</option>
                                            <option value ="Da Nang">Da Nang</option>
                                            <option value ="Can Tho">Can Tho</option>
                                            <option value ="Hue">Hue</option>
                                            <option value ="Ca Mau">Ca Mau</option>
                                            <option value ="Other">Other</option>
                                        </select></td>
                                </tr>
                                <tr>
                                    <td>Profile Deadline</td>
                                    <td>
                                        <table>
                                            <td><select size="1" name="dayOfProfileDealine" disabled="disabled">
                                                    <option value="${job.dayOfProfileDealine}" hidden="true">${job.dayOfProfileDealine}</option>
                                                    <option value ="1">1</option>
                                                    <option value ="2">2</option>
                                                    <option value ="3">3</option>
                                                    <option value ="4">4</option>
                                                    <option value ="5">5</option>
                                                    <option value ="6">6</option>
                                                    <option value ="7">7</option>
                                                    <option value ="8">8</option>
                                                    <option value ="9">9</option>
                                                    <option value ="10">10</option>
                                                    <option value ="11">11</option>
                                                    <option value ="12">12</option>
                                                    <option value ="13">13</option>
                                                    <option value ="14">14</option>
                                                    <option value ="15">15</option>
                                                    <option value ="16">16</option>
                                                    <option value ="17">17</option>
                                                    <option value ="18">18</option>
                                                    <option value ="19">19</option>
                                                    <option value ="20">20</option>
                                                    <option value ="21">21</option>
                                                    <option value ="22">22</option>
                                                    <option value ="23">23</option>
                                                    <option value ="24">24</option>
                                                    <option value ="25">25</option>
                                                    <option value ="26">26</option>
                                                    <option value ="27">27</option>
                                                    <option value ="28">28</option>
                                                    <option value ="29">29</option>
                                                    <option value ="30">30</option>
                                                    <option value ="31">31</option>
                                                </select></td>
                                            <td><select size="1" name="monthOfProfileDealine" disabled="disabled">
                                                    <option value="${job.monthOfProfileDealine}" hidden="true" >${job.monthOfProfileDealine}</option>
                                                    <option value ="1">1</option>
                                                    <option value ="2">2</option>
                                                    <option value ="3">3</option>
                                                    <option value ="4">4</option>
                                                    <option value ="5">5</option>
                                                    <option value ="6">6</option>
                                                    <option value ="7">7</option>
                                                    <option value ="8">8</option>
                                                    <option value ="9">9</option>
                                                    <option value ="10">10</option>
                                                    <option value ="11">11</option>
                                                    <option value ="12">12</option>
                                                </select></td>
                                            <td><select size="1" name="yearOfProfileDeadline" disabled="disabled">
                                                    <option value="${job.yearOfProfileDeadline}" hidden="true">${job.yearOfProfileDeadline}</option>
                                                    <option value="2015">2015</option>
                                                    <option value="2014">2014</option>
                                                    <option value="2013">2013</option>
                                                    <option value="2012">2012</option>
                                                    <option value="2011">2011</option>
                                                    <option value="2010">2010</option>
                                                    <option value="2009">2009</option>
                                                    <option value="2008">2008</option>
                                                    <option value="2007">2007</option>
                                                    <option value="2006">2006</option>
                                                    <option value="2005">2005</option>
                                                    <option value="2004">2004</option>
                                                    <option value="2003">2003</option>
                                                    <option value="2002">2002</option>
                                                    <option value="2001">2001</option>
                                                    <option value="2000">2000</option>
                                                </select>                                                
                                            </td>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>Profile Requirement</td>
                                    <td><TEXTAREA name="profileRequire" rows=3 cols=30 readonly="readonly">${job.profileRequire}</TEXTAREA></td>
                                </tr>
                            </table>
                        </center>
                    </form>





                </td>
                <td><img src="images/right.png" width="208" height="975" /></td>
            </tr>
        </table>
    </body>
</html>

